package com.dks.mapper;

import java.util.*;

import com.dks.models.Parent;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface ParentMapper{

    Integer insert(Parent parent);

    Integer update(Parent parent);

    Integer delete(@Param("id") Integer id);

    Parent select(@Param("id") Integer id);

    Integer cntByMap(Map<String, Object> map);

    List<Integer> getByMap(Map<String, Object> map);

    List<Parent> getByMapList(Map<String, Object> map);

    Integer updateByCode(Parent parent);

    Parent selectByBfCode(@Param("bfCode") String bfCode);

    Parent getByUserId(@Param("userId")Long userId);
}
